package com.cn.test.base;

import android.app.Application;
import android.content.Context;

import androidx.multidex.MultiDex;

import com.baidu.mapapi.CoordType;
import com.baidu.mapapi.SDKInitializer;
import com.tencent.bugly.crashreport.CrashReport;


/**
 * 全局Application
 * Created by chengaofu on 2017/6/19.
 */

public class GlobalApp extends Application {

    public static GlobalApp mAppContext;
    //用户token
    public static String token="";
    public static String userId="";
    @Override
    public void onCreate() {
        super.onCreate();
        mAppContext = this;

        CrashReport.initCrashReport(mAppContext, "2dfc6471d9", false);
    }



    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }

    public static Context getAppContext() {
        return mAppContext;
    }

}
